<form action="${ctx}/channel/form" method="post" id="editChannel" enctype="multipart/form-data">
	<input type="hidden" name="channelId" value="${c.channelId!}" />
	<div class="form-group form-inline row">
		<div class="col-sm-6">
			<label> 线路类型：</label> 
			<input class="form-control" type="text" name="channelType" value="${ctm["${c.channelType}"]!}" disabled/>
		</div>
		<div class="col-sm-6">
			<div style="display: inline-block;">
				<label> 代理商：</label>
				<select class="form-control select2" name="agentName"  style="width: 173px;" disabled>
					<option value="${c.agentName!}">${c.agentName!}</option>
				</select>
			</div>
		</div>
	</div>
	<div class="form-group form-inline row">
		<div class="col-sm-6">
			<div style="display: inline-block;">
				<label> 语音服务器：</label>
				<select class="form-control select2" name="voxGatewayName"  style="width: 173px;" disabled>
					<option value="${c.voxGatewayName!}">${c.voxGatewayName!}</option>
				</select>
			</div>
		</div>
		<div class="col-sm-6">
			<label> 网关IP：</label> 
			<input class="form-control" type="text" name="gatewayIp" value="${c.gatewayIp!}" disabled/>
		</div>
	</div>
	<div class="form-group form-inline row">
		<div class="col-sm-6">
			<label> IP/TEL：</label> 
			<input class="form-control" type="text" name="channelNum" value="${c.channelNum!}" disabled/>
		</div>
		<div class="col-sm-6">
			<label><span style="color: red">*</span>外呼号码：</label> 
			<input class="form-control" type="text" name="channelName" value="${c.channelName!}" maxlength="30"  required />
		</div>
	</div>
	<div class="form-group form-inline row">
		<div class="col-sm-6">
			<label> 录音地址：</label> 
			<input class="form-control" type="text" name="voxServerAddr" value="${c.voxServerAddr!}" title="${c.voxServerAddr!}" disabled/>
		</div>
		<div class="col-sm-6">
			<label> SIM卡网关：</label> 
			<input class="form-control" type="text" name="simGateway" value="${c.simGateway!}" disabled/>
		</div>
	</div>
	<div class="form-group form-inline row">
		<div class="col-sm-6">
			<label> 网关api_ip：</label> 
			<input class="form-control" type="text" name="gatewayApiIp" value="${c.gatewayApiIp!}" disabled/>
		</div>
		<div class="col-sm-6">
			<div style="display: inline-block;">
				<label> 使用月数：</label>
				<select class="form-control select2" name="monthsOfUse"  style="width: 173px;" disabled>
					<option value="${c.monthsOfUse!}">${c.monthsOfUse!}</option>
				</select>
			</div>
		</div>
	</div>
	<div class="form-group form-inline row">
		<div class="col-sm-6">
			<div style="display: inline-block;">
				<label> 卡槽号：</label>
				<select class="form-control select2" name="port"  style="width: 173px;" disabled>
					<option value="${c.port!}">${c.port!}</option>
				</select>
			</div>
		</div>
	</div>
	<div class="form-group form-inline row">
		<div class="col-sm-6">
			<label> SIM卡A：</label> 
			<input class="form-control" type="text" name="simA" value="${cpMap["1"]!}" maxlength="30" />
		</div>
		<div class="col-sm-6">
			<label> SIM卡B：</label> 
			<input class="form-control" type="text" name="simB" value="${cpMap["2"]!}" maxlength="30" />
		</div>
	</div>
	<div class="form-group form-inline row">
		<div class="col-sm-6">
			<label> SIM卡C：</label> 
			<input class="form-control" type="text" name="simC" value="${cpMap["3"]!}" maxlength="30" />
		</div>
		<div class="col-sm-6">
			<label> SIM卡D：</label> 
			<input class="form-control" type="text" name="simD" value="${cpMap["4"]!}" maxlength="30" />
		</div>
	</div>
	<div class="form-group form-inline row">
		<div class="col-sm-6">
			<label> 开始时间：</label> 
			<input class="form-control" type="text" name="beginTime" value="${c.beginTime!}" disabled/>
		</div>
		<div class="col-sm-6">
			<label> 到期时间：</label> 
			<input class="form-control" type="text" name="endTime" value="${c.endTime!}" disabled/>
		</div>
	</div>
</form>

<script>
	$("#editChannel").validate();
</script>
